define(function(require){
	var $ = require("jquery");
	var justep = require("$UI/system/lib/justep");

	var Model = function(){
		this.callParent();
	};



	

	Model.prototype.modelParamsReceive = function(event){
	    
		var areaId = event.params.areaId;
		var url = this.getParentModel().serverUrl + "/ex_community/a/api/community/findChildById?callback=?";
		var me=this;
		$.getJSON(url,{"id":areaId},function(data){
			me.comp("communityData").loadData(data.data);
		});
		me.comp("communityData").refreshData();
		
		

	};

	return Model;
});